package com.excesys.exsecs.access.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.excesys.exsecs.access.dto.AccessFloorDTO;
import com.excesys.exsecs.access.entity.AccessFloor;
import com.excesys.exsecs.access.vo.AccessFloorExcelVO;
import com.excesys.exsecs.access.vo.AccessFloorVO;
import com.excesys.exsecs.common.core.util.R;
import org.springframework.validation.BindingResult;

import java.text.ParseException;
import java.util.List;

public interface AccessFloorService extends IService<AccessFloor> {

    /**
     * 导入楼层管理
     * @param excelVOList 楼层管理列表
     * @param bindingResult 错误信息列表
     * @return ok fail
     */
    R importFloor(List<AccessFloorExcelVO> excelVOList, BindingResult bindingResult);

    /**
     * 查询全部的楼层
     * @return list
     */
    List<AccessFloorExcelVO> listFloor(AccessFloorDTO bamSFloor);

    IPage<AccessFloorVO> getFloorVosPage(Page page, AccessFloorDTO bamSFloorDTO);

    List<AccessFloorVO> getFloorVos(AccessFloorDTO bamSFloorDTO);

    String GetFloorCodeBy(String code, int level, String suffix, int binary) throws ParseException;
}